package com.shangyitong.yygh_hosp.repository;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shangyitong.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {

    Hospital getById(String id);

    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> getHospitalByhosnameLike(String hosname);
}
